import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
import Login from '../views/Login'
import Home from '../views/Home'
import Product from '../views/product/Product'
import Element from '../views/device/Element'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    }, {
      path: '/home',
      name: 'Home',
      component: Home,
      children: [
        {
          path: '/product',
          name: 'Product',
          component: Product
        }, {
          path: '/element',
          name: 'Element',
          component: Element
        }
      ]
    }
  ]
})
